<?php

    defined('ROOT_PATH') || define('ROOT_PATH', realpath(dirname(dirname(dirname(__FILE__))) . ''));
    define("SITE_BASE_URL", dirname($_SERVER['PHP_SELF']));
    define("SITE_HOST_URL", "http://" . $_SERVER['HTTP_HOST']);
    define("SITE_HTTP_URL", "http://" . $_SERVER['HTTP_HOST'] . SITE_BASE_URL);
    if ($_SERVER["REMOTE_ADDR"] == "127.0.0.1")
    {
        define("APPLICATION_URL", "http://" . $_SERVER['HTTP_HOST'] . SITE_BASE_URL);
    }
    else
    {
        define("APPLICATION_URL", "http://" . $_SERVER['HTTP_HOST'] . rtrim(SITE_BASE_URL,'/'));
    }

    define("IMAGES_URL", APPLICATION_URL . "/assets/images");
    define("NO_IMAGE_URL", APPLICATION_URL . "/resources/no-image/no-image.jpg");
    define("SITE_ACTUAL_PATH", "");
    define("USE_SALT", "raekenn");
    define("RATING_STARS_MAX", "10");
    define("COOKIE_EXPIRE_TIME", "3600");

    define('CSS_PATH', APPLICATION_URL . '/assets/css');
    define('JS_PATH', APPLICATION_URL . '/assets/js');
    define('FONTS_PATH', APPLICATION_URL . '/assets/fonts');
    define('IMAGES_PATH', APPLICATION_URL . '/assets/images');
    define('PLUGINS_PATH', APPLICATION_URL . '/assets/plugins');
    define("BOOTSTRAP_PATH", APPLICATION_URL . "/assets/bootstrap");
    
    define("PRODUCTS_PATH", IMAGES_PATH . "/products");
    define("TRENDS_PATH", IMAGES_PATH . "/trends");
    define("BRANDS_PATH", IMAGES_PATH . "/brand");
    define("FEEDS_PATH", IMAGES_PATH . "/feeds");

    define("USERS_IMG_PATH", IMAGES_PATH . "/users");
    define("USERS_IMG_WIDTH", "25");
    define("USERS_IMG_HEIGHT", "25");

    if ($_SERVER["REMOTE_ADDR"] == "127.0.0.1")
    {
        define("FACEBOOK_APP_ID", "322664617874541");
        define("FACEBOOK_SECRET_ID", "ccaa309763acf01215aec3e0b78b2075");
        define("FACEBOOK_CALLBACK_URL", "http://localhost/work/raekenhtml/social/activateaccount");

        define("TWITTER_APP_ID", "HHQKk8o2H836RpSHC81uQ ");
        define("TWITTER_SECRET_ID", "qbJ6HzvdvghHBBccPEVI9txu7zEOArrm5atfA2rB0w");
        define("TWITTER_CALLBACK_URL", "http://127.0.0.1/work/svn/raeken/social/loginwithtwitter");

        define("INSTAGRAM_CLIENT_ID", "1fc007c8de604ab5a6ca4af0021c3e73");
        define("INSTAGRAM_CLIENT_SECRET", "948fed26361c4388b38bdc820ec623da");

        define("IS_LIVE", false);
    }
    else
    {
        define("FACEBOOK_APP_ID", "648948051809004");
        define("FACEBOOK_SECRET_ID", "820e0c961b7d7cc56e6b38fd5499328b");
        define("FACEBOOK_CALLBACK_URL", "http://raeken.com/social/activateaccount");

        define("TWITTER_APP_ID", "i5F5zfMezF2KfRkNlhLBQw");
        define("TWITTER_SECRET_ID", "9ATFiOuDwUGdUjQefIOz3pHZtheMw9JdShuigBMtIU");
        define("TWITTER_CALLBACK_URL", "http://raeken.com/raeken_new/social/loginwithtwitter");

        define("INSTAGRAM_CLIENT_ID", "1fc007c8de604ab5a6ca4af0021c3e73");
        define("INSTAGRAM_CLIENT_SECRET", "948fed26361c4388b38bdc820ec623da");

        define("IS_LIVE", true);
    }

    //define("PAYPAL_FORM_URL", "https://www.sandbox.paypal.com/cgi-bin/webscr");
    define("PAYPAL_FORM_URL", "https://www.paypal.com/cgi-bin/websc");
    //define("PAYPAL_EMAIL", "yourname@email.com");
    define("PAYPAL_EMAIL", "kenny@raeken.com");

    define("AD_WIDTH", "241");
    define("AD_HEIGHT", "212");

    define("VERSION", "1.0");

    define("TIME_ZONE", "EST");

    define("TAX_PERCENT", "4");
    define("FEDEX_ACCOUNT", "510087062");
    define("FEDEX_METER", "118606179");
    define("FEDEX_URL", "https://gatewaybeta.fedex.com/GatewayDC");

    define("TWITTER_USERNAME", "raekenshop");
    define("FACEBOOK_USERNAME", "raekenshop");
?>
